		package com.cdl.service.impl;  																		  

		import java.util.List;																					
		import org.slf4j.Logger;																				
		import org.slf4j.LoggerFactory;																			
		import org.springframework.beans.factory.annotation.Autowired;											
		import org.springframework.stereotype.Service;															

		import com.cdl.dao.EmployeeMapper;																		
		import com.cdl.entity.Employee;																	
		import com.cdl.service.EmployeeService;																	
		import com.github.pagehelper.PageInfo;																	
		@Service("employeeServiceImpl")																	
		public class EmployeeServiceImpl extends BasicServiceImpl<Employee> implements EmployeeService{	
			private static Logger logger = LoggerFactory.getLogger(EmployeeServiceImpl.class);				  

			@Autowired																							
			EmployeeMapper employeeMapper ;																  

			@Override																							
			public List<Employee> getList(Employee employee) {									
				logger.info("查询用户列表");																		
				List<Employee> u = employeeMapper.getList(employee);								
				return u;																						
			}																								  

			@Override																							
			public Employee get(Employee employee) {											
				Employee u = employeeMapper.get(employee);											
				return u;																						
			}																								  

			@Override																							
			public void add(Employee employee) {														
				employeeMapper.add(employee);															
			}																								  

			@Override																							
			public void update(Employee employee) {													
				employeeMapper.update(employee);															
			}																								  

			@Override																							
			public void delete(Employee employee) {													
				employeeMapper.delete(employee);															
			}																								  

			@Override																							
			public PageInfo<Employee> getPage(Employee employee) {								
				return getPage(employee.getPageNum(),employee.getPageSize(),employee);		
			}																									
		}																									  


